@echo off
chcp 65001 > nul          # 控制台 UTF-8
set LANG=en_US.UTF-8       # 系统语言环境
set LC_CTYPE=en_US.UTF-8   # 字符分类规则
set PROJECT_DIR=%~dp0
set LOG_FILE="%PROJECT_DIR%sync.log"

echo [%date% %time%] 开始同步 >> %LOG_FILE%
python "%PROJECT_DIR%svn_sync.py" --work-dir "%PROJECT_DIR%" >> %LOG_FILE% 2>&1
echo [%date% %time%] 同步完成 >> %LOG_FILE%